
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

.search-container.searching {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    justify-content: flex-start;
}

.search-box {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    width: 70%;
    margin-right: 10px;
}

.search-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    min-width: 80px;
}

.search-button:hover {
    background-color: #0056b3;
}

.results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 20px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    overflow-y: auto;
    flex-grow: 1;
}

.result-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    cursor: pointer;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 180px;
    height: 290px;
    margin: 0;
    text-decoration: none;
    box-sizing: border-box;
}

.result-item:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.result-image-wrapper {
    position: relative;
    width: 160px;
    height: 200px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='%23ccc'%3E%3Crect width='100' height='100' rx='10' ry='10' fill='%23f0f0f0'/%3E%3Ctext x='50%' y='50%' font-size='14' text-anchor='middle'%3E🎥%3C/text%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    border-radius: 5px;
}

.result-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    opacity: 1;
}

.result-image[src=""] {
    opacity: 0;
}

.site-info {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px;
    display: flex;
    align-items: center;
    border-radius: 5px;
}

.site-icon {
    width: 18px;
    height: 18px;
    margin-right: 5px;
}

.site-name {
    font-size: 12px;
}

.result-title {
    font-weight: bold;
    margin-top: 10px;
    font-size: 16px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 160px;
    box-sizing: border-box;
    display: block;
    text-decoration: none;
}

.result-description {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 160px;
    box-sizing: border-box;
    text-decoration: none;
}
